﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using ExcelToSql.Code;

namespace ExcelToSql
{
    static class Program
    {

        internal static ProgramConfiguration Configuration;

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

        static Program()
        {
            Configuration = new ProgramConfiguration();

            try
            {
                Configuration.RowsToCheck = Convert.ToInt32(ConfigurationManager.AppSettings["RowsToCheck"]);
            }
            catch
            {
                Configuration.RowsToCheck = 3000;
            }

        }
    }
}
